package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type VideoAudioLibraryRouter struct {}

// InitVideoAudioLibraryRouter 初始化 videoAudioLibrary表 路由信息
func (s *VideoAudioLibraryRouter) InitVideoAudioLibraryRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	videoAudioLibraryRouter := Router.Group("videoAudioLibrary").Use(middleware.OperationRecord())
	videoAudioLibraryRouterWithoutRecord := Router.Group("videoAudioLibrary")
	videoAudioLibraryRouterWithoutAuth := PublicRouter.Group("videoAudioLibrary")
	{
		videoAudioLibraryRouter.POST("createVideoAudioLibrary", videoAudioLibraryApi.CreateVideoAudioLibrary)   // 新建videoAudioLibrary表
		videoAudioLibraryRouter.DELETE("deleteVideoAudioLibrary", videoAudioLibraryApi.DeleteVideoAudioLibrary) // 删除videoAudioLibrary表
		videoAudioLibraryRouter.DELETE("deleteVideoAudioLibraryByIds", videoAudioLibraryApi.DeleteVideoAudioLibraryByIds) // 批量删除videoAudioLibrary表
		videoAudioLibraryRouter.PUT("updateVideoAudioLibrary", videoAudioLibraryApi.UpdateVideoAudioLibrary)    // 更新videoAudioLibrary表
	}
	{
		videoAudioLibraryRouterWithoutRecord.GET("findVideoAudioLibrary", videoAudioLibraryApi.FindVideoAudioLibrary)        // 根据ID获取videoAudioLibrary表
		videoAudioLibraryRouterWithoutRecord.GET("getVideoAudioLibraryList", videoAudioLibraryApi.GetVideoAudioLibraryList)  // 获取videoAudioLibrary表列表
	}
	{
	    videoAudioLibraryRouterWithoutAuth.GET("getVideoAudioLibraryPublic", videoAudioLibraryApi.GetVideoAudioLibraryPublic)  // videoAudioLibrary表开放接口
	}
}
